<html>
<body>
Reports redundant operations on empty collections, maps or arrays.
<p>
  Iterating, removing elements, sorting,
  and some other operations on empty collections have no effect and can be removed. Also, they may be a signal of a bug.</p>
<p><b>Example:</b></p>
<pre><code>
  if (numbers.isEmpty()){
    //error due to the missed negation
    int max = numbers.stream().max(Comparator.naturalOrder()).get();
    ...
  }
</code></pre>
<!-- tooltip end -->
<p><small>New in 2019.1</small></p>
</body>
</html>